package com.txl.cn.lc

import org.apache.spark.{SparkConf, SparkContext}

/**
  * Created by txl on 2018/7/24.
  */
object VersionDemo {

  def main(args: Array[String]): Unit = {

    val conf = new SparkConf().setAppName("lc")
      .setMaster("local[*]")
    val sc = new SparkContext(conf)
    val res ="1.2.3"
    val res2 ="1.2.4"

    def VersionCompare(res: String, res2: String): String ={
      if(res.hashCode>res2.hashCode){
        res
      }else{
        res2
      }
    }
    println(VersionCompare(res,res2))

  }

}
